package com.xunfang.cloud.common.api.fackback;

import com.xunfang.cloud.common.ReturnCodeEnum;
import com.xunfang.cloud.common.api.PayFeignSentinelApi;
import com.xunfang.cloud.common.result.ResultData;
import org.springframework.stereotype.Component;

/**
 * @author yellow Doctor
 * @date 2025-11-07
 * @desc https://blog.csdn.net/hekai7217
 */
@Component
public class PayFeignSentinelApiFallBack implements PayFeignSentinelApi {

    @Override
    public ResultData getPayByOrderNo(Integer orderNo) {
        return ResultData.fail(ReturnCodeEnum.RC500.getCode(),"服务宕机或不可用，FallBack服务降级");
    }

}
